package org.jeecg.modules.mall.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.appuser.entity.TbUserCash;
import org.jeecg.modules.mall.entity.Tb_news2;
import org.jeecg.modules.mall.mapper.Tb_news2Mapper;
import org.jeecg.modules.mall.service.ITb_news2Service;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 新闻2
 * @Author: jeecg-boot
 * @Date:   2020-07-03
 * @Version: V1.0
 */
@Service
public class Tb_news2ServiceImpl extends ServiceImpl<Tb_news2Mapper, Tb_news2> implements ITb_news2Service {


    @Override
    public IPage<Tb_news2> getNews2DataPages(Page<Tb_news2> page, Tb_news2 tb_news2) {
        return page.setRecords(this.baseMapper.getNews2DataPages(page, tb_news2));
    }
}
